package org.layuiframework.stereotype.vo;

import lombok.Getter;

@Getter
public enum ResultCode implements StatusCode {

    SUCCESS(200,"请求成功"),
    FAILED(100,"请求失败"),
    VALIDATE_ERROR(400,"参数校验失败"),
    LOGOUT(401,"用户未登录"),
    NETERROR(500,"服务异常"),
    RESPONSE_PACK_ERROR(503,"response返回包装失败");

    private int code;
    private String msg;

    ResultCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
